import { observable } from 'mobx';
import service from '../service/index';


const Entry05Store = observable({
    title: 'this is login page',

    currentCourseItem: null,

    know_list_one: [],
    know_list_two: [],

    // 获取教材
    async GetWritingKnowledgeList() {

        this.know_list_one = await service.GetWritingKnowledgeList();

       // this.know_list_one.forEach(x => x.ImageURL = ' http://www.besteasylearn.com/pic/book.png')

        console.log(this.know_list_one, "==========this.GetWritingKnowledgeList========");

        return this.know_list_one;
    },

    async GetWritingStoryList() {
        this.know_list_two = await service.GetWritingStoryList();
        return this.know_list_two;
    }
    

});


export default Entry05Store;